{% extends 'userCenterTemplate.html' %}

{% load staticfiles %}

{% block title %}个人中心 - 慕学在线网{% endblock %}

{% block userCenterTag %}我的消息{% endblock %}

{% block right %}
<div class="right" >
		<div class="personal_des Releasecont">
			<div class="head">
				<h1>我的消息</h1>
			</div>
		</div>
		<div class="personal_des permessage">
			<div class="head">
				<ul class="tab_header messagehead">
					<li class="active">
                        <a href="{% url 'users:userCenterMessage' %}">个人消息</a>
                    </li>
				</ul>
			</div>
			<div class="messagelist">
            {% for obj in userMessages %}
                <div class="messages">
                    <div class="fr">
                        <div class="top">
                            <span class="fl time">{{ obj.addTime }}</span>
                            <span class="fr btn foldbtn"></span>
                        </div>
                        <p>{{ obj.message }}</p>
                    </div>
                </div>
			</div>
            {% endfor %}
{#			<div class="pageturn pagerright">#}
{#                <ul class="pagelist">#}
{#                    {% if pageObj.has_previous %}#}
{#                        <li class="long">#}
{#                            <a href="?{{ pageObj.previous_page_number.querystring }}">上一页</a>#}
{#                        </li>#}
{#                    {% endif %}#}
{#                    {% if pageObj.object_list|length > 0 %}#}
{#                        {% for page in pageObj.pages %}#}
{#                            {% if page %}#}
{#                                {% ifequal page pageObj.number %}#}
{#                                <li class="active">#}
{#                                    <a class="page" href="?{{ page.querystring }}">{{ page }}</a>#}
{#                                </li>#}
{#                                {% else %}#}
{#                                <li>#}
{#                                    <a class="page" href="?{{ page.querystring }}">{{ page }}</a>#}
{#                                </li>#}
{#                                {% endifequal %}#}
{#                            {% else %}#}
{#                                <li><a href="#" class="none">...</a></li>#}
{#                            {% endif %}#}
{#                        {% endfor %}#}
{#                    {% endif %}#}
{#                    {% if pageObj.has_next %}#}
{#                        <li class="long"><a href="?{{ pageObj.next_page_number.querystring }}">下一页</a></li>#}
{#                    {% endif %}#}
{#                </ul>#}
{#            </div>#}
		</div>
	</div>
{% endblock %}

